package com.fzshang.commen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fzshang.commen.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 账户表 Mapper 接口
 * </p>
 *
 * @author 冯政尚
 * @since 2020-01-28
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * @param account
     * @param passWord
     * @return user登陆
     */
    User userLogin(@Param("account") String account, @Param("passWord") String passWord);
    /**
     * @param requestUserName
     * @return 判断用户名是否为空
     */
    User userNameIsNall(@Param("account") String requestUserName);
    /**
     * @param requestPassWord
     * @param requestUserName
     * @return 判断用户名对应的密码是否能错误
     */
    User passWordIsNall(@Param("password") String requestPassWord, @Param("account") String requestUserName);

    /**
     * @param map
     * @return 后台查询
     */
    List<User> selectMyPage(@Param("param") Map map);
    Integer  countMyPage(@Param("param") Map map);


    //根据时间查询人数
    Integer selectByTimeCount(@Param("time") String time);

    Integer selectByTimeSumMoney(@Param("time")String time);
}
